/**
 * 
 */
package com.nc.delivery_project.shared.servicelocator;

import com.google.web.bindery.requestfactory.shared.ServiceLocator;
import com.nc.delivery_project.server.domain.StateProvince;
import com.nc.delivery_project.server.service.StateProvinceService;


/**
 * @author NataG
 *
 */
public class StateProvinceServiceLocator implements ServiceLocator {

	private static StateProvinceService serviceInstance;

	@Override
	public Object getInstance(Class<?> arg0) {
		return StateProvinceServiceLocator.getServiceInstance();
	}

	private static StateProvinceService getServiceInstance() {
		if (serviceInstance == null) {
            serviceInstance = new StateProvinceService();
        }

        return serviceInstance;	}

}
